﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AddRetreat.aspx.cs" Inherits="RedemptoristRetreatCenter.AddRetreat" %>

<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1><%: Title %>Add Retreat</h1>
            </hgroup>    
            <table style="width: 100%;">
                <tr>
                    <td class="auto-style1">Title:&nbsp;</td><td class="auto-style2"><asp:TextBox ID="tbTitle" runat="server" Width="406px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="auto-style1">Description:&nbsp;</td><td class="auto-style2"><asp:TextBox ID="tbDesc" runat="server" TextMode="MultiLine" Wrap="true" Width="406px" Height="66px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="auto-style1">Duration:&nbsp;</td><td class="auto-style2"><asp:TextBox ID ="tbDuration" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="auto-style1">Fee:&nbsp;</td><td class="auto-style6">
                        <asp:TextBox ID ="tbFee" runat="server"></asp:TextBox></td>
                        <asp:CompareValidator id="CompareValidator1" runat="server" ControlToValidate="tbFee" Operator="DataTypeCheck"
                           Type="Currency"  Display="Dynamic" ErrorMessage="Illegal format for currency" />
                        <asp:RangeValidator id="RangeValidator1" runat="server" ControlToValidate="tbFee"
                           Type="Currency" MinimumValue="1.00" MaximumValue="999.99" ErrorMessage="Out of range" Display="Dynamic" />

                </tr>
                <tr>
                <td class="auto-style1">Category:&nbsp;</td><td><asp:DropDownList ID="categoryList" runat="server" 
                    Height="22px" Width="200px" OnLoad="categoryList_OnLoad"></asp:DropDownList></td>
                </tr>
            </table>
            <br />
            <br />
            <asp:Button runat="server" ID="addRetreatButton" OnClick="addRetreatButton_Click" Text="Add Retreat" ForeColor="#000000">
            </asp:Button>&nbsp;&nbsp;
            <asp:Literal ID="statusMessage" runat="server"></asp:Literal>
        </div>
    </section>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
</asp:Content>